list01 = [1,2,19,34,12]
def generaator(alist):
    for i in alist:
        if i & 2 == 0:
            yield i
g01 = generaator(list01)
for i in g01:
    print(i,end=" ")
print("  ")

class Vextor:
    def __init__(self,start,end):
        self.start = start
        self.end   = end
    def get_num(self):
        while True:
            if self.start > self.end:
                break
            num = self.start
            self.start += 1
            yield num 
v1 = Vextor(3,9)
for i in v1.get_num():
    print(i,end="")